package com.ebookstore.service;

import java.util.List;

import com.ebookstore.dto.Cart;
import com.ebookstore.dto.Item;
import com.ebookstore.dto.Lineitem;
import com.ebookstore.dto.Order;
import com.ebookstore.dto.UserInfo;
import com.ebookstore.exception.EBookStoreException;

public interface OrderService {

  public void addOrder(Order order, Lineitem lineitem, Item item);
  
  public void delOrder(Order order);

  public void delOrder(int id);

  public Object findOrderById(int id);

  public List<Order> findOrderList(String strsql);
  
  public void addOrder( Order order, Cart cart ,UserInfo user) throws EBookStoreException;
}
